package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

/**
 * 攻略评论服务
 */
public interface IStrategyCommentService {

    /**
     * 添加攻略评论
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);

    /**
     * 攻略评论列表+分页
     * @param qo
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 攻略评论点赞
     * @param id  mongodb中strategy_comment中的_id
     * @param userId 用户id
     */
    void commentThumbUp(String id, Long userId);
}
